import { Service } from "~/core/service";
import { NetService } from "~/util/net.service";
import { PageService } from "~/util/page.service";
import { Inject, Debounce } from "~/core/decorator";
import { serviceManage } from "~/config/server";

export class OperationLogService extends Service {
  @Inject(NetService)
  private netService: NetService;

  /**
  * 查询系统操作日志
  */
  findOperationLogsByPage(data: any, page: PageService) {
    return this.netService.send({
      server: serviceManage.operationLogController.findOperationLogsByPage,
      data,
      page
    })
  }

  /**
   * 查询详细的错误信息
   * @param detailsId 
   */
  findOperationLogsDetails(detailsId: string) {
    return this.netService.send({
      server: serviceManage.operationLogController.findOperationLogsDetails,
      append: detailsId
    })
  }
}